package org.truenewx.tnxjeex.unit.model;

import javax.measure.quantity.Mass;

import org.truenewx.tnxjee.core.caption.Caption;
import org.truenewx.tnxjee.core.enums.annotation.SimpleEnumType;
import org.truenewx.tnxjeex.unit.support.MeasureUnits;
import org.truenewx.tnxjeex.unit.util.UnitTypes;
import tech.units.indriya.unit.Units;

/**
 * 重量单位
 */
@Caption("重量单位")
@SimpleEnumType(name = UnitTypes.MASS)
public interface MassUnit extends MeasureUnit<Mass> {

    @Caption("吨")
    MassUnit TON = MeasureUnits.getInstance().multiply(Units.KILOGRAM, 1000, MassUnit.class, "t", "TON", "MT");

    @Caption("千克")
    MassUnit KILOGRAM = MeasureUnits.getInstance().add(Units.KILOGRAM, MassUnit.class, null, "KILOGRAM", "MKG");

    @Caption("克")
    MassUnit GRAM = MeasureUnits.getInstance().divide(KILOGRAM, 1000, "g", "GRAM", "MG");

    @Caption("毫克")
    MassUnit MILLIGRAM = MeasureUnits.getInstance().divide(GRAM, 1000, "mg", "MILLIGRAM", "MMG");

}
